package com.kcs.fxmargin.bo;

import java.math.BigDecimal;
import java.util.Date;

import org.json.JSONObject;

public class CustomerInformationBO {
	
	private int rowNum;
	private String id;
	private String cifNo;
	private String customerName;
	private String marginAccNo;
	private String marginAccName;
	private String depositAccNo;
	private String depositAccName;
	private BigDecimal custLimitAmt;
	private Date updateDate;
	private String updateDateStr;
	private String updateBy;
	private String customerStatus;
	private String customerStatusCode;
	private String jsonObject;
	private int rowVersion;
	
	public JSONObject getJSONObject() throws Exception {
		JSONObject object = new JSONObject();
		
		object.put("id", 				this.id);
		object.put("rowNum", 			this.rowNum);
		object.put("cifNo", 			this.cifNo);
		object.put("customerName", 		this.customerName);
		object.put("marginAccNo", 		this.marginAccNo);
		object.put("marginAccName", 	this.marginAccName);
		object.put("depositAccNo", 		this.depositAccNo);
		object.put("depositAccName", 	this.depositAccName);
		object.put("custLimitAmt", 		this.custLimitAmt);
		object.put("updateDate", 		this.updateDate);
		object.put("updateDateStr", 	this.updateDateStr);
		object.put("updateBy", 			this.updateBy);
		object.put("customerStatus", 	this.customerStatus);
		object.put("customerStatusCode",this.customerStatusCode);
		object.put("rowVersion", 		this.rowVersion);
		
		return object;
	}
	
	@Override
	public String toString() {
		return "rowNum:'" + this.rowNum +
				"',id:'" 				+ this.id + 
				"',cifNo:'" 			+ this.cifNo + 
				"',customerName:'" 		+ this.customerName + 
				"',marginAccNo:'" 		+ this.marginAccNo + 
				"',marginAccName:'" 	+ this.marginAccName + 
				"',depositAccNo:'" 		+ this.depositAccNo + 
				"',depositAccName:'" 	+ this.depositAccName + 
				"',custLimitAmt:'" 		+ this.custLimitAmt + 
				"',updateDate:'" 		+ this.updateDate + 
				"',updateDateStr:'"		+ this.updateDateStr + 
				"',updateBy:'" 			+ this.updateBy + 
				"',customerStatus:'" 	+ this.customerStatus + 
				"',customerStatusCode:'"+ this.customerStatusCode +
				"',rowVersion:'" 		+ this.rowVersion + 
				"'";
	}
	
	public int getRowVersion() {
		return rowVersion;
	}

	public void setRowVersion(int rowVersion) {
		this.rowVersion = rowVersion;
	}

	public String getCustomerStatusCode() {
		return customerStatusCode;
	}

	public void setCustomerStatusCode(String customerStatusCode) {
		this.customerStatusCode = customerStatusCode;
	}

	public String getJsonObject() {
		return jsonObject;
	}

	public void setJsonObject() {
		this.jsonObject = this.toString();
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public int getRowNum() {
		return rowNum;
	}
	public void setRowNum(int rowNum) {
		this.rowNum = rowNum;
	}
	public String getCifNo() {
		return cifNo;
	}
	public void setCifNo(String cifNo) {
		this.cifNo = cifNo;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getMarginAccNo() {
		return marginAccNo;
	}
	public void setMarginAccNo(String marginAccNo) {
		this.marginAccNo = marginAccNo;
	}
	public String getMarginAccName() {
		return marginAccName;
	}
	public void setMarginAccName(String marginAccName) {
		this.marginAccName = marginAccName;
	}
	public String getDepositAccNo() {
		return depositAccNo;
	}
	public void setDepositAccNo(String depositAccNo) {
		this.depositAccNo = depositAccNo;
	}
	public String getDepositAccName() {
		return depositAccName;
	}
	public void setDepositAccName(String depositAccName) {
		this.depositAccName = depositAccName;
	}
	public BigDecimal getCustLimitAmt() {
		return custLimitAmt;
	}
	public void setCustLimitAmt(BigDecimal custLimitAmt) {
		this.custLimitAmt = custLimitAmt;
	}
	public String getUpdateBy() {
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}
	public String getCustomerStatus() {
		return customerStatus;
	}
	public void setCustomerStatus(String customerStatus) {
		this.customerStatus = customerStatus;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getUpdateDateStr() {
		return updateDateStr;
	}

	public void setUpdateDateStr(String updateDateStr) {
		this.updateDateStr = updateDateStr;
	}
	
}
